package com.rightsidetech.mall.service;


import com.github.pagehelper.PageInfo;
import com.rightsidetech.mall.dto.request.SpecsPageReq;
import com.rightsidetech.mall.dto.request.SpecsReq;
import com.rightsidetech.mall.dto.request.SpecsUpReq;
import com.rightsidetech.mall.dto.response.SpecsPageResp;
import com.rightsidetech.commom.base.DelReq;
import com.rightsidetech.commom.base.ResponseData;

import java.util.List;

public interface MallSpecsService {

    ResponseData saveSpecs(SpecsReq req,String createName,Long createId);

    ResponseData updateSpecs(SpecsUpReq req,String updaterName,Long updaterId);

    ResponseData isDelete(DelReq req);

    ResponseData<PageInfo<SpecsPageResp>> page(SpecsPageReq req);

    ResponseData<List<SpecsPageResp>> getSpecsValue(Long id);

    ResponseData<List<SpecsPageResp>> getAll();
}
